package com.project.client.mapper;

import java.util.Date;
import java.util.List;

import com.project.client.domain.CentigradeRecordEntity;
import com.project.client.dto.CentigradeDTO;
import com.project.common.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 温度记录数据Mapper接口
 *
 * @author project
 * @date 2021-05-10
 */
@Mapper
public interface CentigradeRecordMapper extends BaseDao<CentigradeRecordEntity> {

    //查询相同数据
    CentigradeRecordEntity selectByAlike(CentigradeRecordEntity entity);

    //获取各省份平均温度
    List<CentigradeDTO> selectChinaData(@Param("date") String date);

    //获取指定省份的下级城市温度列表
    List<CentigradeDTO> selectData(@Param("date") String date, @Param("areaKey") String areaKey);
}